import React from 'react';
import { Table,ConfigProvider } from 'antd';
import zhCN from 'antd/lib/locale/zh_CN';


const CustomTable = ({ data, columns, pageSize }) => {
  return (

    <ConfigProvider locale={zhCN}>
    <Table
      columns={columns}
      dataSource={data}
      showSizeChanger
      showQuickJumper
      pagination={{
        pageSize:5,
      }}
      // pagination={false} 
      rowKey="id"
    />
    </ConfigProvider>
  );
};

export default CustomTable;